package com.ant.collect;

import com.ant.collect.common.ApplicationContextService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@MapperScan("com.ant.collect.mapper")
public class CollectApplication {
    public static void main(String[] args) {
        try {
            ConfigurableApplicationContext context= SpringApplication.run(CollectApplication.class, args);
            ApplicationContextService.setApplicationContext(context);
        }catch (Exception e){
            System.out.println(e);
        }

    }
}
